<%@page import="member.MemberVo"%>
<%@page import="member.MemberMyba"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>view(회원 상세 정보)</title>
<script>
function sel(mid){
	location.href='list.jsp';
}
function modify(mid){
	location.href="modify.jsp?memberid=" + mid;
}
function del(mid){
	location.href="delete.jsp?memberid=" + mid;
}
</script>
</head>
<body>
<%request.setCharacterEncoding("utf-8"); %>
<jsp:useBean id="memberVo" class="member.MemberVo"/>
<jsp:setProperty property="*" name="memberVo"/>
<%
	MemberMyba member = new MemberMyba();
	member.setMemberVo(memberVo);
	MemberVo data = member.view();
	if(data == null){
		out.print("null");
	}else{
%>

<li>MID : <%=data.getMemberid() %>
<li>Name : <%=data.getIrum() %>
<%} %>
<hr/>
<input type='button' value='목록' onclick='sel("<%=data.getMemberid() %>")'>
<input type='button' value='수정' onclick='modify("<%=data.getMemberid() %>")'>
<input type='button' value='삭제' onclick='del("<%=data.getMemberid() %>")'>

</body>
</html>